/*
 * @Author: linzaifei 1609781601@qq.com
 * @Date: 2025-04-29 17:25:47
 * @LastEditors: linzaifei 1609781601@qq.com
 * @LastEditTime: 2025-08-07 09:44:03
 * @FilePath: /amap-web-vr/src/router/index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/*
 * @Author: linzaifei 1609781601@qq.com
 * @Date: 2025-04-29 17:25:47
 * @LastEditors: linzaifei 1609781601@qq.com
 * @LastEditTime: 2025-05-08 14:43:15
 * @FilePath: /amap-web-vr/src/router/index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { createRouter, createWebHashHistory } from 'vue-router';

const routes = [
  {
    path: '/',
    name: 'Home',
    component: () => import('../views/home/index.vue'),
    meta: { keepAlive: true } // 设置需要缓存
  },
  {
    path: '/mine',
    name: 'Mine',
    component: () => import('../views/mine/index.vue'),
    meta: { keepAlive: false } // 设置不需要缓存
  }
];
// import.meta.BASE_URL
const router = createRouter({
  // history: createWebHistory('/'),
  history: createWebHashHistory(),
  routes
});

export default router;
